package com.xingxuecn.limit.dao;

import com.xingxuecn.limit.common.model.Page;
import com.xingxuecn.limit.common.model.Role;

import java.sql.SQLException;
import java.util.List;

/**
 * @author zgx at 2018/9/13 0013 下午 1:11
 */
public interface RoleDao {
    public int add(Role role) throws SQLException;

    public int update(Role role) throws SQLException;

    public int delete(int id) throws SQLException;

    public List<Role> search(Role role, Integer... limit) throws SQLException;

    public Page<Role> searchPage(Role role, int page, int rows) throws SQLException;

    public int count(Role role) throws SQLException;

    List<Role> findAll() throws SQLException;
}
